package fr.cpe.j2ee.projet.model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the ta_employee_conversation database table.
 * 
 */
@Entity
@Table(name="ta_employee_conversation")
@NamedQuery(name="EmployeesConversation.findAll", query="SELECT e FROM EmployeesConversation e")
public class EmployeesConversation implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private EmployeesConversationPK id;

	@Column(name="emp_con_caller")
	private byte empConCaller;

	//bi-directional many-to-one association to Conversation
	@ManyToOne
	@JoinColumn(name="con_id", updatable=false, insertable=false)
	private Conversation conversation;

	//uni-directional many-to-one association to Employee
	@ManyToOne
	@JoinColumn(name="emp_id", updatable=false, insertable=false)
	private Employee employee;

	public EmployeesConversation() {
	}

	public EmployeesConversationPK getId() {
		return this.id;
	}

	public void setId(EmployeesConversationPK id) {
		this.id = id;
	}

	public byte getEmpConCaller() {
		return this.empConCaller;
	}

	public void setEmpConCaller(byte empConCaller) {
		this.empConCaller = empConCaller;
	}

	public Conversation getConversation() {
		return this.conversation;
	}

	public void setConversation(Conversation conversation) {
		this.conversation = conversation;
	}

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

}